/*
 * @Description: 生活商城路由表
 * @Author: py
 * @Date: 2024-07-23
 */
import { Layout } from '@fl/utils/routerHelper'

const lifeMallRoute: AppRouteRecordRaw = {
    children: [
        // {
        //     component: () => import('@fl/city-service/clue/index.vue'),
        //     meta: {
        //         icon: 'i-icon-park-outline:clue',
        //         permission: ['线索列表-详情'],
        //         title: '线索管理',

        //     },
        //     name: 'clue-management',
        //     path: 'clue',
        // },
        {
            children: [
                {
                    component: () => import('@fl/city-service/commodity/detail.vue'),
                    meta: {
                        activeMenu: '/city/life-mall/commodity',
                        hidden: true,
                        noTagsView: true,
                        title: '商品详情',

                    },
                    name: 'commodity-detail',
                    path: ':pageType/:id',
                },
            ],
            component: () => import('@fl/city-service/commodity/index.vue'),
            meta: {
                icon: 'i-carbon:carbon-for-ibm-product',
                permission: ['商品列表-商家信息'],
                title: '商品管理',
            },
            name: 'commodity-management',
            path: 'commodity',
        },
        {
            children: [
                {
                    component: () => import('@/pages/life-mall/order/list.vue'),
                    meta: {
                        title: '订单查询',
                    },
                    name: 'life-mall-order-list',
                    path: 'order-list',
                },
                {
                    component: () => import('@/pages/life-mall/order/details.vue'),
                    meta: {
                        activeMenu: '/city/life-mall/life-mall-order/order-list',
                        hidden: true,
                        noTagsView: true,
                        title: '订单详情',
                    },
                    name: 'life-mall-order-details',
                    path: 'order-details',
                },
            ],
            meta: {
                alwaysShow: true,
                icon: 'i-pepicons-pencil:file',
                title: '订单管理',
            },
            name: 'life-mall-order-manage',
            path: 'life-mall-order',
        },
        {
            children: [
                {
                    component: () => import('@/pages/after-sales/detail.vue'),
                    meta: {
                        activeMenu: '/city/life-mall/afterSales',
                        hidden: true,
                        noTagsView: true,
                        title: '售后详情',

                    },
                    name: 'afterSales-detail',
                    path: 'detail/:id',
                },
            ],
            component: () => import('@/pages/after-sales/index.vue'),
            meta: {
                icon: 'i-hugeicons:customer-service-01',
                title: '售后管理',
            },
            name: 'after-sales-management',
            path: 'afterSales',
        },
        {
            component: () => import('@/pages/life-mall/refund/list.vue'),
            meta: {
                // alwaysShow: true,
                icon: 'i-ph:currency-circle-dollar-thin',
                title: '退款管理',
            },
            name: 'refund-manage',
            path: 'refund',
        },
        {
            component: () => import('@/pages/life-mall/evaluate/list.vue'),
            meta: {
                // alwaysShow: true,
                icon: 'i-la:comment',
                title: '评价管理',
            },
            name: 'evaluate-manage',
            path: 'evaluate',
        },
    ],
    component: Layout,
    meta: {
        icon: 'i-material-symbols:storefront-outline',
        title: '生活商城',
    },
    name: 'life-mall',
    path: 'life-mall',
}

export default lifeMallRoute
